<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<jsp:include page="/jsp/common.jsp" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>resource/css/user.css" />
<jsp:include page="/jsp/tableHead.jsp" />
<script type="text/javascript">
$().ready(function(){

	var option = {
			head : [
					{name:"contact",title:"联系人",width:100},
		            {name:"tel",title:"联系电话",width:80},
		            {name:"address",title:"送货地址",width:"50%"},
		            {name:"postcode",title:"邮编",width:150},
		            {name:"operation",title:"操作",width:140}
		            ],
            searchURL : "<%=basePath %>user/receiver_list.do",
            editURL : "<%=basePath %>user/receiver_edit.do",
            deleteURL : "<%=basePath %>user/receiver_delete.do",
            table_Option : {
				head : {sortable: false, selectAll: {require:false}},
				row : { selectable : false },
				foot : { require : false, pageNum : 1, pageSize : 100}
			},
            queryFn : function(){
                
				var $table = default_Option.$table,
					$search = default_Option.$search,
					pageSize = 100,
					pageNum = 1;
		
				$search.setPageNum(pageNum);
				$search.setPageSize(pageSize);
				$search.doSearch();
    		}
       };
	initTable(option);
});
</script>
</head>
<body>
<jsp:include page="../header.jsp" />
<div class="content">
<div class="bar">
	<jsp:include page="./menu.jsp" />
	<div class="list_div_01 border_radius_3">
		<div class="list_title">收货地址</div>
		<div class="line"><a href="<%=basePath %>user/receiver_edit.do">添加收货地址</a></div>
		<table id="listTable">
		</table>
	</div>
</div>
</div>
<jsp:include page="../footer.jsp" />
</body>
</html>